{{! app/templates/contact.hbs}}
<div class="col-md-6 col-xs-6">
   <form>
     <div class="form-group">
         <label for="exampleInputEmail1">Email address</label>
         {{input type="email" value=model.email class="form-control col-sm-6 col--6" placeholder="Please type your e-mail address." autofocus="autofocus"}}
     </div>
     <div class="form-group">
         <label for="exampleInputPassword1">Your message</label>
         {{textarea class="form-control" placeholder="Your message. (At least 5 characters.)" rows="7" value=model.message}}
     </div>

     <button class="btn btn-primary" disabled={{model.isDisabled}} {{action 'saveContact' model}}>Send</button>
     <!-- 使用手动判断方式实现 -->
     <!-- <button class="btn btn-primary" disabled={{model.isDisabled2}} {{action 'saveInvitation' model}}>Send</button> -->
   </form>

   <div>
       <br><br><br><br>
      {{! 显示提示信息}}
      {{#if model.responseMessage}}
       <div class="alert alert-success">{{model.responseMessage}}</div>
     {{/if}}
   </div>

</div>
